﻿#ifndef _JZAgent_H_
#define _JZAgent_H_

#include <QObject>
#include <QNetworkAccessManager>
#include "JZCo.h"
#include "JZAgentTool.h"

#if defined(_MSC_VER) && _MSC_VER >= 1600
#pragma execution_character_set("utf-8")
#endif

class JZAgent : public QObject
{
	Q_OBJECT

public:
	JZAgent();
	~JZAgent();

	bool send(QString content,QString &result);
	void addTool();

protected:
    enum Role 
    {
        User,
        System,
    };

    void addMessage(QJsonArray &array, Role role, QString text);
	QNetworkAccessManager* m_manager;
};


#endif